<%@ page pageEncoding="utf-8"%>
<%@ include file="/common/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>个人工作台</title>

<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
-->
</style>

<style type="text/css">
<!--
.STYLE2 {
	font-size: 12px;
	font-weight: bold;
	color: #FFFFFF;
}
.STYLE3 {
	font-size: 12px;
	color: #d6eafe;
}
.STYLE4 {font-size: 12px}
-->
</style>
<link rel="stylesheet" type="text/css" media="all"
	href="<c:url value='/styles/sasis/desk.css'/>"/>
<script type="text/javascript">

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function toView(mid){
	var url = '<c:url value="/marketings.html?method=view"/>';
	if(mid!=undefined){
		url = url + '&mid=' + mid;
	}
	//window.location.href=url;
	MM_openBrWindow(url,'','width=800,height=500,scrollbars=yes');
}

function toViewMassPush(id){
	var url = '<c:url value="/masspushinfo.html?method=view"/>';
	url = url + "&massId=" + id;
	MM_openBrWindow(url,'','width=500,height=350');
}

function toMore(type){
	var url;
	if(type==1){
		url = '<c:url value="/marketings.html?status=0"/>';
	}else{
		url = '<c:url value="/masspushinfo.html"/>';
	}
	window.location.replace(url);
}
</script>
<script src="<c:url value='/scripts/common.js'/>"></script>
</head>

<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td align="left" valign="top" class="desk"><table width="200" height="43" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td width="12">&nbsp;</td>
        <td width="26"><img src="images/desk.gif" width="22" height="20"/></td>
        <td width="162"><span class="white12">桌面</span></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td align="left" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="1%">&nbsp;</td>
        <td width="48%">&nbsp;</td>
        <td width="1%">&nbsp;</td>
        <td width="1%">&nbsp;</td>
        <td width="47%">&nbsp;</td>
        <td width="2%">&nbsp;</td>
        </tr>
      <tr>
        <td>&nbsp;</td>
        <td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="3%" bgcolor="276EBF"><img src="images/desk-01.jpg" width="9" height="24" /></td>
            <td width="3%" bgcolor="276EBF">&nbsp;</td>
            <td colspan="2" bgcolor="276EBF"><span class="STYLE2">待办文件</span></td>
            <td width="48%" align="right" bgcolor="276EBF">
             <span class="STYLE3" style="cursor: pointer" onclick="toMore(1);">更多&gt;&gt;&gt;</span></td>
            <td width="3%" align="right" bgcolor="276EBF"><img src="images/desk-02.jpg" width="9" height="24" /></td>
          </tr>
          <tr>
            <td align="right" bgcolor="F1F1F1">&nbsp;</td>
            <td align="right" bgcolor="F1F1F1">&nbsp;</td>
            <td align="right" bgcolor="F1F1F1">&nbsp;</td>
            <td colspan="2" bgcolor="F1F1F1">&nbsp;</td>
            <td valign="top" bgcolor="F1F1F1">&nbsp;</td>
          </tr>
          
           <c:forEach items="${opList}" var="m">
          <tr>
            <td align="left" bgcolor="F1F1F1">&nbsp;</td>
            
            <td align="right" bgcolor="F1F1F1" height="24px"><img src="<c:url value="/images/desk-arrow.gif"/>" width="10" height="7" /></td>
            <td colspan="3" bgcolor="F1F1F1">
            <span class="STYLE4" style="cursor: pointer;" onclick="toView(<c:out value="${m.id}"/>)">
            <c:out value="${m.title}"/> [<script>formatDateTime(<c:out value="${m.initTime}"/>);</script>] </span><br /></td>
            <td valign="top" bgcolor="F1F1F1">&nbsp;</td>
          </tr>
          </c:forEach>
          
          <tr>
            <td align="left" valign="bottom" bgcolor="F1F1F1"><img src="images/desk-03.jpg" width="9" height="9" /></td>
            <td colspan="4" bgcolor="F1F1F1">&nbsp;</td>
            <td align="right" valign="bottom" bgcolor="F1F1F1"><img src="images/desk-04.jpg" width="9" height="9" /></td>
          </tr>
        </table></td>
        <td>&nbsp;</td>
        <td class="leftbrown">&nbsp;</td>
        <td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="3%" bgcolor="276EBF"><img src="images/desk-01.jpg" width="9" height="24" /></td>
            <td width="3%" bgcolor="276EBF">&nbsp;</td>
            <td colspan="2" bgcolor="276EBF"><span class="STYLE2"><fmt:message key="desk.send.manager"/></span></td>
            <td width="48%" align="right" bgcolor="276EBF"> <span class="STYLE3" style="cursor: pointer" onclick="toMore(2);">更多&gt;&gt;&gt;</span></td>
            <td width="3%" align="right" bgcolor="276EBF"><img src="images/desk-02.jpg" width="9" height="24" /></td>
          </tr>
          <tr>
            <td align="right" bgcolor="F1F1F1">&nbsp;</td>
            <td align="right" bgcolor="F1F1F1">&nbsp;</td>
            <td align="right" bgcolor="F1F1F1">&nbsp;</td>
            <td colspan="2" bgcolor="F1F1F1">&nbsp;</td>
            <td valign="top" bgcolor="F1F1F1">&nbsp;</td>
          </tr>
          <c:forEach items="${massList}" var="s">
          <tr>
            <td align="left" bgcolor="F1F1F1">&nbsp;</td>
            
            <td align="right" bgcolor="F1F1F1" height="24px"><img src="<c:url value="/images/desk-arrow.gif"/>" width="10" height="7" /></td>
            <td colspan="3" bgcolor="F1F1F1">
            <span class="STYLE4" style="cursor: pointer;" onclick="toViewMassPush(<c:out value="${s.id}"/>)">
            <c:out value="${s.name}"/> [<fmt:formatDate value="${s.startTime}" pattern="yyyy-MM-dd hh:mm"/>] </span><br /></td>
            <td valign="top" bgcolor="F1F1F1">&nbsp;</td>
          </tr>
          </c:forEach>
         
          <tr>
            <td align="left" valign="bottom" bgcolor="F1F1F1"><img src="images/desk-03.jpg" width="9" height="9" /></td>
            <td colspan="4" bgcolor="F1F1F1">&nbsp;</td>
            <td align="right" valign="bottom" bgcolor="F1F1F1"><img src="images/desk-04.jpg" width="9" height="9" /></td>
          </tr>
        </table></td>
        <td valign="top">&nbsp;</td>
        </tr>
    </table></td>
  </tr>
</table>
</body>
</html>
